import request from '@/utils/request'

export function addDept(data) { // 添加部门
    return request({
        url: `/v1/department/create`,
        method: 'post',
        data: data
    })
}

export function editDept(data) { //
    return request({
        url: `/v1/department/update`,
        method: 'put',
        params: data
    })
}

export function delDept(data) { //
    return request({
        url: `/v1/department/del`,
        method: 'put',
        params: data
    })
}

export function numDept() { //
    return request({
        url: `/v1/department/num`,
        method: 'get'
    })
}

export function completeDept(data) { //
    return request({
        url: `/v1/department/complete`,
        method: 'get',
        params: data
    })
}